import http from "@/utils/http1.js"

// 增加短链
export const addShortLink = (data) => {
    return http.post('/short-link/link/create', data)
}
// 删
export const delLinkShort = (data) => {
    return http.post('/short-link/link/recycle' ,data)
}
// 查找
export const getLinkList = (gid) => {
    return http.get('/short-link/link/page?gid='+`${gid}&pageNum=1&pageSize=10`)
}
// 获取短连接数据
export const getShortData = (short_url,gid) => {
    return http.get('/short-link/link/stats' + `?short_url=${short_url}&gid=${gid}`)
}